Write-Host -ForegroundColor Yellow "Office: Installing Chart Controls .NET 3.5."

$syncinstalled = Get-WmiObject -class "Win32_SoftwareFeature" | where { $_.ProductName -like "*Microsoft Chart Controls*" }

if ($syncinstalled -eq $null){
& ".\Scripts\ChartControl\MSChart.exe" /passive /norestart
sleep 10
Write-Host -ForegroundColor Yellow "Office: Installing Chart Controls .NET 3.5. COMPLETED"
} else {
Write-Host -ForegroundColor Gray "Office: Installing Chart Controls .NET 3.5. Already Installed Skipping."
}


